<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<button>点我去4.27history-b.html</button>
<button>点我去下一页</button>
<!--1.history对象-->
<script>
  document.getElementsByTagName("button")[0].onclick=function (ev) {
    window.location.href="4.27history-b.html";
  };
  document.getElementsByTagName("button")[1].onclick=function (ev) {
    window.history.forward();
  };
</script>
</body>
</html>
